import { ElInput } from 'element-plus'
export default {
  label: '输入框',
  preview: () => <ElInput placeholder="预览输入框"></ElInput>,
  render: ({ model, size }) => {
    console.log(size)
    return <ElInput placeholder="渲染输入框" {...model.default} style={{ width: `${size.width}px` }} ></ElInput>
  }

  ,
  key: 'input',
  resize: { // 可以更改拉伸文本框的宽度
    width: true
  },
  model: { // {default:'username'}
    default: '绑定字段'
  }
}